# tells the class [1-4] of a given sample
#M - matrix of mean values of all traits (columns) in particular classes (rows)
#S - matrix of std dev values of all traits (columns) in particular classes (rows)
#sample - vector of attributes to clasify upon (1 row)
function classNo = guessClass(sample,M,S,apriori=[0.25,0.25,0.25,0.25])
    vals=[];
    for i=1:4
        pds(i)=apriori(1,i);
        for(j=1:size(sample,2))
            pds(i)*=normpdf(sample(1,j),M(i,j),S(i,j));        
        end;  
    end;
[classVal,classNo]=max(pds);
end
